package chapt02.simple;
// Simple.java
// The Simplest OpenGL program with GLUT
// OpenGL SuperBible, 3rd Edition
// Richard S. Wright Jr.
// rwright@starstonesoftware.com

import javax.media.opengl.GL;
import javax.media.opengl.GL2;

public class Simple
{
	// Setup the rendering state
	protected static void setup(GL2 gl2, int width, int height)
	{
		gl2.glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
	}
	
	// Called to draw scene
	protected static void render(GL2 gl2, int width, int height)
	{
		// Clear the window with current clearing color
		gl2.glClear(GL.GL_COLOR_BUFFER_BIT);
		
		// Flush drawing commands
		gl2.glFlush();
	}
}